class InvCounterDetailsEntity {
	List<InvCounterDetailsData> datas;

	InvCounterDetailsEntity({this.datas});

	InvCounterDetailsEntity.fromJson(List< dynamic> json) {
		if (json != null) {
			datas = new List<InvCounterDetailsData>();(json as List).forEach((v) { datas.add(new InvCounterDetailsData.fromJson(v)); });
		}
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.datas != null) {
      data['datas'] =  this.datas.map((v) => v.toJson()).toList();
    }
		return data;
	}
}

class InvCounterDetailsData {
	String batchno;
	String orderdetailid;
	dynamic biddingbatchid;
	String materialname;
	dynamic upshelfquantity;
	dynamic orderdispatchdetailid;
	bool isseq;
	String materialid;
	String spec;
	bool isrfid;
	bool ischeck;
	dynamic warehouseid;
	dynamic realquantity;
	String model;
	dynamic shelfname;
	dynamic projectid;
	String baseunitname;
	List<InvCounterDetailsDatasInorderdetailsnlist> inOrderDetailSnList;
	dynamic supplierid;
	dynamic quantity;
	dynamic quantityAPP;
	dynamic handoverquantity;
	dynamic areaname;
	String orderid;
	dynamic checkquantity;
	String baseuintid;
	bool isbatch;
	dynamic locationcode;
	dynamic diffquantity;
	bool issn;
	dynamic imageurl;
	dynamic unitchangeid;
	dynamic customerid;
	String materialcode;

	InvCounterDetailsData({this.batchno, this.orderdetailid, this.biddingbatchid, this.materialname, this.upshelfquantity, this.orderdispatchdetailid, this.isseq, this.materialid, this.spec, this.isrfid, this.ischeck, this.warehouseid, this.realquantity, this.model, this.shelfname, this.projectid, this.baseunitname, this.inOrderDetailSnList, this.supplierid, this.quantity, this.handoverquantity, this.areaname, this.orderid, this.checkquantity, this.baseuintid, this.isbatch, this.locationcode, this.diffquantity, this.issn, this.imageurl, this.unitchangeid, this.customerid, this.materialcode,this.quantityAPP});

	InvCounterDetailsData.fromJson(Map<String, dynamic> json) {
		batchno = json['batchno'];
		orderdetailid = json['orderdetailid'];
		biddingbatchid = json['biddingbatchid'];
		materialname = json['materialname'];
		upshelfquantity = json['upshelfquantity'];
		orderdispatchdetailid = json['orderdispatchdetailid'];
		isseq = json['isseq'];
		materialid = json['materialid'];
		spec = json['spec'];
		isrfid = json['isrfid'];
		ischeck = json['ischeck'];
		warehouseid = json['warehouseid'];
		realquantity = json['realquantity'];
		model = json['model'];
		shelfname = json['shelfname'];
		projectid = json['projectid'];
		baseunitname = json['baseunitname'];
		if (json['inOrderDetailSnList'] != null) {
			inOrderDetailSnList = new List<InvCounterDetailsDatasInorderdetailsnlist>();(json['inOrderDetailSnList'] as List).forEach((v) { inOrderDetailSnList.add(new InvCounterDetailsDatasInorderdetailsnlist.fromJson(v)); });
		}
		supplierid = json['supplierid'];
		quantity = json['quantity'];
		quantityAPP = json['quantity'];
		handoverquantity = json['handoverquantity'];
		areaname = json['areaname'];
		orderid = json['orderid'];
		checkquantity = json['checkquantity'];
		baseuintid = json['baseuintid'];
		isbatch = json['isbatch'];
		locationcode = json['locationcode'];
		diffquantity = json['diffquantity'];
		issn = json['issn'];
		imageurl = json['imageurl'];
		unitchangeid = json['unitchangeid'];
		customerid = json['customerid'];
		materialcode = json['materialcode'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['batchno'] = this.batchno;
		data['orderdetailid'] = this.orderdetailid;
		data['biddingbatchid'] = this.biddingbatchid;
		data['materialname'] = this.materialname;
		data['upshelfquantity'] = this.upshelfquantity;
		data['orderdispatchdetailid'] = this.orderdispatchdetailid;
		data['isseq'] = this.isseq;
		data['materialid'] = this.materialid;
		data['spec'] = this.spec;
		data['isrfid'] = this.isrfid;
		data['ischeck'] = this.ischeck;
		data['warehouseid'] = this.warehouseid;
		data['realquantity'] = this.realquantity;
		data['model'] = this.model;
		data['shelfname'] = this.shelfname;
		data['projectid'] = this.projectid;
		data['baseunitname'] = this.baseunitname;
		if (this.inOrderDetailSnList != null) {
      data['inOrderDetailSnList'] =  this.inOrderDetailSnList.map((v) => v.toJson()).toList();
    }
		data['supplierid'] = this.supplierid;
		data['quantity'] = this.quantity;
		data['handoverquantity'] = this.handoverquantity;
		data['areaname'] = this.areaname;
		data['orderid'] = this.orderid;
		data['checkquantity'] = this.checkquantity;
		data['baseuintid'] = this.baseuintid;
		data['isbatch'] = this.isbatch;
		data['locationcode'] = this.locationcode;
		data['diffquantity'] = this.diffquantity;
		data['issn'] = this.issn;
		data['imageurl'] = this.imageurl;
		data['unitchangeid'] = this.unitchangeid;
		data['customerid'] = this.customerid;
		data['materialcode'] = this.materialcode;
		return data;
	}
}

class InvCounterDetailsDatasInorderdetailsnlist {
	String materialsnid;

	InvCounterDetailsDatasInorderdetailsnlist({this.materialsnid});

	InvCounterDetailsDatasInorderdetailsnlist.fromJson(Map<String, dynamic> json) {
		materialsnid = json['materialsnid'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['materialsnid'] = this.materialsnid;
		return data;
	}
}
